package mt.client;

import static org.junit.Assert.*;
import mt.Order;
import mt.client.fake.ClientCommFake;

import org.junit.Before;
import org.junit.Test;

public class GraphicInterfaceTest {

	private static GraphicInterface graphicInterface;
	private ClientCommFake clientCommFake;
	private String nickName;
	
	@Before
	public void init() {
		this.clientCommFake = new ClientCommFake();
		this.nickName = "nickName";
	}
	
	
	@Test
	public void testGraphicInterface() {
		graphicInterface = new GraphicInterface(clientCommFake, nickName);
		assertNotNull(graphicInterface);
	}

	@Test
	public void testUpdate() {
		Order o = Order.createBuyOrder(nickName, "a", 10, 10);
		graphicInterface.update(o);
	}

}
